package com.iafme.dto.res;

import cn.zhxu.bs.bean.DbField;
import cn.zhxu.bs.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author summer
 * @version 1.0
 * @date 2025/3/22 11:23
 */
@Data
@SearchBean(tables = "iafme_member_message m LEFT JOIN iafme_message s ON m.message_id=s.id",orderBy = "s.createTime DESC")
public class MemberMessageResDTO implements Serializable {

    @DbField("m.id")
    private Integer id;

    @DbField("s.name")
    private String name;

    @DbField("s.context")
    private String context;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DbField("s.createTime")
    private Date createTime;

    @DbField("m.status")
    private Integer status;

    @DbField("m.member_id")
    private Integer memberId;
}
